public class Test {
    public static void test1(IRunning iRunning){
        iRunning.run();
    }
    public static void test2(Iswimming iswimming){
        iswimming.swim();
    }
    public static void test3(Iflying iflying){
        iflying.fly();
    }

    public static void main(String[] args) {
        test1(new Dog("小七", 3));
        System.out.println("===============");
        test1(new Robot("长江七号"));
    }
}
